package com.wind.beans;

import java.util.List;

/**
 * @author lolxiaoguo.com
 * @version $Rev$
 * on 2020/7/12
 */
public class ArticleCategories {


    /**
     * success : true
     * code : 20000
     * message : 获取分类列表成功
     * data : [{"id":"731943228604940288","name":"Android","pinyin":"安卓","description":"这是关于安卓的文章","order":1,"status":"1","createTime":"2020-07-12T10:41:05.000+0000","updateTime":"2020-07-12T10:41:05.000+0000"},{"id":"731942858881236992","name":"Python","pinyin":"Python","description":"这是关于Python的文章","order":1,"status":"1","createTime":"2020-07-12T10:39:36.000+0000","updateTime":"2020-07-12T10:39:36.000+0000"},{"id":"731942747300167680","name":"Java","pinyin":"Java","description":"这是关于Java的文章","order":1,"status":"1","createTime":"2020-07-12T10:39:10.000+0000","updateTime":"2020-07-12T10:39:10.000+0000"},{"id":"731941933168984064","name":"掩星","pinyin":"yanxing","description":"这是关于掩星的文章","order":1,"status":"1","createTime":"2020-07-12T10:35:56.000+0000","updateTime":"2020-07-12T10:35:56.000+0000"}]
     */

    private boolean success;
    private int code;
    private String message;
    private List<DataBean> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 731943228604940288
         * name : Android
         * pinyin : 安卓
         * description : 这是关于安卓的文章
         * order : 1
         * status : 1
         * createTime : 2020-07-12T10:41:05.000+0000
         * updateTime : 2020-07-12T10:41:05.000+0000
         */

        private String id;
        private String name;
        private String pinyin;
        private String description;
        private int order;
        private String status;
        private String createTime;
        private String updateTime;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPinyin() {
            return pinyin;
        }

        public void setPinyin(String pinyin) {
            this.pinyin = pinyin;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id='" + id + '\'' +
                    ", name='" + name + '\'' +
                    ", pinyin='" + pinyin + '\'' +
                    ", description='" + description + '\'' ;

        }
    }

    @Override
    public String toString() {
        return "Categories{" +
                "success=" + success +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
